package com.atguigu.i_test;

public class PingPongCoach extends Coach{

    public PingPongCoach() {
    }

    public PingPongCoach(String name, int age) {
        super(name, age);
    }

    @Override
    public void teach() {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的乒乓球教练教学抽球 ");
    }

    @Override
    public void eat(String food) {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的乒乓球教练在吃 " + food);
    }

    @Override
    public void sleep() {
        System.out.println("姓名是 : " + getName() + " 年龄是 : " + getAge() + " 的乒乓球教练在休息 ");
    }
}
